<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
// import Joomla modelitem library
jimport('joomla.application.component.modelitem');
 
/**
 * Service Model
 */
class ServiceModelService extends JModelItem
{
        /**
         * @var string msg
         */
		protected $msg;
        protected $url;
		protected $canUseLink;
 
        /**
         * Get the message
         * @return string The message to be displayed to the user
         */
        public function getMsg() 
        {
				$this->check();
                if (!isset($this->msg)) 
                {
                        $this->msg = 0;
                }
                return $this->msg;
        }
		
		public function check()
		{
			$db = JFactory::getDBO();
			
			$param = JRequest::getVar('param');
			
			if ($param == 1)
			{
				$query = $db->getQuery(true);
				$query->select('*');
				$query->from('#__themata_panellinion');
				$db->setQuery((string)$query);
				$this->msg = $db->loadObjectList();
			}
			else
			{
				$this->msg = 0;
			}
			
            
            
		}
}